home *** CD-ROM | disk | FTP | other *** search
- Program Illustrating_Windowing;
-
- uses Crt, FastTTT, Dos, WinTTT;
-
- var Ch : char;
- I : integer;
- begin
- Clrscr;
- FillScreen(1,1,80,25,white,blue,'W');
- Sizecursor(4,5);
- delay(1000); {move the cursor to a unique location}
- MkWin(10,4,40,13,yellow,green,1);
- WriteBetween(10,40,7,yellow,green,'This is the first window');
- WriteBetween(10,40,9,yellow,green,'Maybe a pulldown menu ');
- GotoXY(38,9); {move the cursor to a unique location}
- Sizecursor(6,7);
- Delay(2000);
- MkWin(20,11,50,20,red,lightgray,2);
- WriteBetween(20,50,14,red,lightgray,'This is the second window');
- WriteBetween(20,50,16,red,lightgray,'Perhaps a second menu ');
- OffCursor; {Now hide the cursor}
- Delay(2000);
- GrowMkWin(45,6,75,24,magenta,cyan,3);
- WriteBetween(45,80,14,magenta,cyan,'This is the third window');
- WriteBetween(45,80,16,magenta,cyan,'Perhaps a help screen ');
- GotoXY(73,16); {move the cursor to a unique location}
- Sizecursor(1,7);
- Delay(3000);
- Rmwin;
- Delay(1000);
- Rmwin;
- Delay(1000);
- Rmwin;
- Mkwin(25,11,55,16,white,blue,4);
- WriteBetween(25,55,13,white,blue,'Thats all there is to it!');
- WriteBetween(25,55,14,white,blue,'press any key...');
- WriteAT(1,24,white,black,'Run DemoTTT.exe for the main demo program');
- WriteAT(1,25,white,black,'Technojocks Turbo Toolkit v4.0');
- Ch := Readkey;
- end.